﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Simple.Repository.SimpleEntitys {

	/// <summary>
	/// 公司短信发送日志
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "company_sms_logs", DisableSyncStructure = true)]
	public partial class CompanySmsLogs {

		/// <summary>
		/// 主键Id
		/// </summary>
		[JsonProperty, Column(Name = "id", DbType = "bigint", IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 公司Id
		/// </summary>
		[JsonProperty, Column(Name = "company_id", DbType = "bigint")]
		public long CompanyId { get; set; }

		/// <summary>
		/// 短信内容
		/// </summary>
		[JsonProperty, Column(Name = "sms_content", StringLength = 500, IsNullable = false)]
		public string SmsContent { get; set; }

		/// <summary>
		/// 收信人手机号
		/// </summary>
		[JsonProperty, Column(Name = "recipient_phone", IsNullable = false)]
		public string RecipientPhone { get; set; }

		/// <summary>
		/// 发信时间
		/// </summary>
		[JsonProperty, Column(Name = "sender_time", DbType = "datetime")]
		public DateTime SenderTime { get; set; }

		/// <summary>
		/// 发信人员工Id
		/// </summary>
		[JsonProperty, Column(Name = "sender_employee_id", DbType = "bigint")]
		public long SenderEmployeeId { get; set; }

		/// <summary>
		/// 腾讯云短信通知记录Id
		/// </summary>
		[JsonProperty, Column(Name = "tencent_cloud_sms_record_id")]
		public string TencentCloudSmsRecordId { get; set; }

		/// <summary>
		/// 腾讯云短信通知模板Id
		/// </summary>
		[JsonProperty, Column(Name = "tencent_cloud_sms_template_id")]
		public string TencentCloudSmsTemplateId { get; set; }

		/// <summary>
		/// 短信场景标签
		/// </summary>
		[JsonProperty, Column(Name = "sms_tag", IsNullable = false)]
		public string SmsTag { get; set; }

	}

}
